﻿#if UNITY_STANDALONE || UNITY_ANDROID || UNITY_IOS || UNITY_WSA || UNITY_WEBGL
using ActorSystem;
using Net.Client;
using Net.Component;
using Net.Share;
using Net.UnityComponent;
using UnityEngine;

namespace AOIExample
{
    public class SceneManager : NetworkSceneManager
    {
        public ActorView[] actorViews;
        internal Scene scene = new();

        protected override void OperationSyncHandler(in OperationList list)
        {
            scene.Dispatch(list);
        }

        public override void Update()
        {
            base.Update();
            scene.FixedUpdate(33U);
        }
    }
}
#endif